const router = require('koa-router')()
const {
    dynamicLike
} = require('../controller/dynamicLike')

router.prefix('/api')

//动态点赞
router.post('/dynamic/like', async (ctx, next) => {
    const {
        dynamic_id:dynamicId,
        uid:userId
    } = ctx.request.body
    ctx.body = await dynamicLike({
        dynamicId,
        userId
    })
})

module.exports = router
